package com.alvin.abp.web.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * @author <a href="mailto:rex2.mj@gmail.com">Leo Meng</a>
 * @date $Date: Mar 25, 2013 $
 */
public class RemoveJsessionFilter implements Filter {

	 public void destroy() {
	  // TODO Auto-generated method stub
	 }

	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		// TODO Auto-generated method stub
	    HttpServletResponse httpResponse = (HttpServletResponse) response;
	    httpResponse.setHeader("P3P","CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'");
		chain.doFilter(request, httpResponse);
	}

	 public void init(FilterConfig arg0) throws ServletException {
	  // TODO Auto-generated method stub
	 }
	 
	}